/*
 * @Author: your name
 * @Date: 2021-08-17 11:57:07
 * @LastEditTime: 2021-08-18 16:30:25
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \sks-quote-web\src\api\banch\banchmanrk.js
 */
import request from '@/utils/request'


//获取列表
export function datumUserList(query) {
  console.log(query, '1query');
  return request({
    url: '/sks/datum/datumUserList',
    method: 'get',
    params: query
  })
}


//新增基准等级用户
export function addDatumUser(query) {
  return request({
    url: '/sks/datum/addDatumUser',
    method: 'post',
    data: query
  })
}

//根据编号获取基准等级详细信息
export function editdatum(query) {
  return request({
    url: '/sks/datum/' + query,
    method: 'git',
    data: query
  })
}
//删除基准等级
export function deldatum(query) {
  return request({
    url: '/sks/datum/removeDatumUser/' + query,
    method: 'delete',
    data: query
  })
}

//获取系统用户列表
export function alllist(query) {
  console.log(query, 'query');
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query
  })
}
//修改用户基准等级
export function updateDatumUser(query) {
  console.log(query, 'query');
  return request({
    url: '/sks/datum/updateDatumUser',
    method: 'put',
    params: query
  })
}

//获取列表
export function quoteList(query) {
  return request({
    url: '/sks/datum/list',
    method: 'get',
    data: query
  })
}
